
import { Modal } from '@arco-design/web-react';

export default function Confirm(title: string, content: string) {
	return new Promise<boolean>((res) => {
		Modal.confirm({
			title,
			content,
			okText: '确认',
			cancelText: '取消',
			maskClosable: true,
			onOk() {
				res(true);
			},
			onCancel() {
				res(false);
			}
		});
	});
}
